/* 数据页面样式 */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.config-display {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.status-box, .topic-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.status-label, .topic-label {
    font-weight: bold;
}

.status-value, .topic-value {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.module-management {
    margin-bottom: 20px;
}

#add-module-btn {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #2196F3;
}

#add-module-btn:hover {
    background-color: #0b7dda;
}

.modules-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.module-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
}

.module-title {
    font-size: 16px;
    font-weight: bold;
}

.module-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-data {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.module-button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.module-input-group {
    display: flex;
    gap: 10px;
}

.module-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.module-send-btn {
    padding: 8px 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}